home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6995 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: ix.netcom.com!netnews
  2. From: dc30@ix.netcom.com(Diane Cogswell )
  3. Newsgroups: comp.lang.c++
  4. Subject: Help on assignment
  5. Date: 20 Feb 1996 23:48:06 GMT
  6. Organization: Netcom
  7. Message-ID: <4gdmjm$1kr@cloner4.netcom.com>
  8. NNTP-Posting-Host: ix-wor-ma1-04.ix.netcom.com
  9. X-NETCOM-Date: Tue Feb 20  3:48:06 PM PST 1996
  10.  
  11. I'm hoping someone out there can help me out. I just started c++ and
  12. I'm having problems with a couple assinments. Don't think I recieved
  13. enough information.
  14. The first one:
  15. Write a function that normally takes one argument, the address of a
  16. string, and prints that string once. However, if a second, type int
  17. argument is provided and is greater than zero, the function prints the
  18. string the number of times equal to the number of times indicated. 
  19.  
  20. Second one is 
  21. Write a function called zerosmaller that is passed to two int arguments
  22. by reference and then sets the smaller of the two numbers to 0. Write a
  23. main() program to exercise this function and print out the result.
  24. I would really appreciate any help anyone can give me. I understood
  25. Pascal but I'm having trouble trying to translate programs in c++. 
  26. Thanks 
  27.  from discouraged
  28.